﻿using System;
using Medianamik.Client.MVP.View;

namespace Medianamik.Client.MVP.Presentation
{
    public abstract class Presenter<TView>  : IPresenter<TView> where TView : IView  
    {
        protected Presenter(TView view)
        {
            View = view;
            View.Initialize += Initialize;
        }

        protected virtual void Initialize(object sender, EventArgs e)
        {
            
        }

        public TView View
        {
            get;
            private set;
        }
    }
}
